package us.mooresr.webtroopmanager.shared;



import javax.persistence.Id;

import com.google.gwt.user.client.rpc.IsSerializable;


public class Vehicle implements IsSerializable {
	

	@Id private Long id;
	

	private String make;
	

	private String model;
	

	private Integer modelYear;
	

	private Integer seatbelts;
	

	private Integer liabilityPerPerson;
	

	private Integer liabilityPerAccident;
	

	private Integer propertyDamage;
	

	private Long owner;
	
	public Vehicle() {
		
	}

	public Vehicle(Long id, String make, String model, Integer modelYear,
			Integer seatbelts, Integer liabilityPerPerson,
			Integer liabilityPerAccident, Integer propertyDamage, Long owner) {
		super();
		this.id = id;
		this.make = make;
		this.model = model;
		this.modelYear = modelYear;
		this.seatbelts = seatbelts;
		this.liabilityPerPerson = liabilityPerPerson;
		this.liabilityPerAccident = liabilityPerAccident;
		this.propertyDamage = propertyDamage;
		this.owner = owner;
	}

	public String toString() {
		return modelYear.toString() + " " + make + " " + model;
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMake() {
		return make;
	}

	public void setMake(String make) {
		this.make = make;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public Integer getModelYear() {
		return modelYear;
	}

	public void setModelYear(Integer modelYear) {
		this.modelYear = modelYear;
	}

	public Integer getSeatbelts() {
		return seatbelts;
	}

	public void setSeatbelts(Integer seatbelts) {
		this.seatbelts = seatbelts;
	}

	public Integer getLiabilityPerPerson() {
		return liabilityPerPerson;
	}

	public void setLiabilityPerPerson(Integer liabilityPerPerson) {
		this.liabilityPerPerson = liabilityPerPerson;
	}

	public Integer getLiabilityPerAccident() {
		return liabilityPerAccident;
	}

	public void setLiabilityPerAccident(Integer liabilityPerAccident) {
		this.liabilityPerAccident = liabilityPerAccident;
	}

	public Integer getPropertyDamage() {
		return propertyDamage;
	}

	public void setPropertyDamage(Integer propertyDamage) {
		this.propertyDamage = propertyDamage;
	}

	public Long getOwner() {
		return owner;
	}

	public void setOwner(Long owner) {
		this.owner = owner;
	}
	
	

}
